
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>画中画 | home</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="画中画
123456789101112131415161718192021222324252627282930313233&amp;lt;template&amp;gt;  &amp;lt;div&amp;gt;    &amp;lt;div&amp;gt;        视频：&amp;lt;video id&amp;#x3D;&amp;#39;video&amp;#39; :src&amp;#x3D;&amp;quot;img_url&amp;quot; width&amp;#x3D;&amp;quot;350&amp;quot; height&amp;#x3D;&amp;quot;240&amp;quot;&amp;gt;&amp;lt;&amp;#x2F;video&amp;gt;        &amp;lt;Button @click&amp;#x3D;&amp;quot;into&amp;quot;&amp;gt;&amp;#123;...">
    
        <link rel="icon" href="/favicon.ico">
    
    
        
            <link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
        
            <link rel="stylesheet" href="/css/stage.css">
        
            <link rel="stylesheet" href="/css/avatar-bg.css">
        
    
<meta name="generator" content="Hexo 4.2.0"></head>

<body>
<header id="header">
    <div class="menu">
        <i class="fa fa-bars"></i>
    </div>
    <div class="header-main">
        <h1><a href="/">home</a></h1>
    </div>
    <div id="nav">
        <div class="nav-img" id="nav-img"></div>
        <div class="sentences">
            人生贵相知，何用金与钱。——李白
        </div>
    </div>
</header>

<div id="content-outer">
    <div id="content-inner">
        <div class="clearfix">
    <article id="post">
        <h1>画中画</h1>
        <div class="create">
            <span>Created</span>
            
                <time datetime="2020-05-02T02:11:35.000Z">
                    2020-05-02
                </time>
            
            
        </div>
        <h1 id="画中画"><a href="#画中画" class="headerlink" title="画中画"></a>画中画</h1><hr>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><span class="line">&lt;template&gt;</span><br><span class="line">  &lt;div&gt;</span><br><span class="line">    &lt;div&gt;</span><br><span class="line">        视频：&lt;video id&#x3D;&#39;video&#39; :src&#x3D;&quot;img_url&quot; width&#x3D;&quot;350&quot; height&#x3D;&quot;240&quot;&gt;&lt;&#x2F;video&gt;</span><br><span class="line">        &lt;Button @click&#x3D;&quot;into&quot;&gt;&#123;&#123; this.hzh&#125;&#125;&lt;&#x2F;Button&gt;</span><br><span class="line">    &lt;&#x2F;div&gt;</span><br><span class="line">  &lt;&#x2F;div&gt;</span><br><span class="line">&lt;&#x2F;template&gt;</span><br><span class="line"></span><br><span class="line">&lt;script&gt;</span><br><span class="line">export default &#123;</span><br><span class="line">    data () &#123;</span><br><span class="line">        return &#123;</span><br><span class="line">            &#x2F;&#x2F;画中画</span><br><span class="line">            hzh : &#39;进入画中画&#39;,</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;,</span><br><span class="line">    methods:&#123;</span><br><span class="line">        &#x2F;&#x2F;画中画</span><br><span class="line">        into:function()&#123;</span><br><span class="line">            if(video !&#x3D; document.pictureInPictureElement)&#123;</span><br><span class="line">                &#x2F;&#x2F;尝试进入画中画</span><br><span class="line">                video.requestPictureInPicture();</span><br><span class="line">                this.hzh &#x3D; &#39;退出画中画&#39;</span><br><span class="line">            &#125;else&#123;</span><br><span class="line">                &#x2F;&#x2F;退出画中画</span><br><span class="line">                document.exitPictureInPicture();</span><br><span class="line">                this.hzh &#x3D; &#39;进入画中画&#39;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;,</span><br><span class="line">    &#125;，</span><br><span class="line">&#125;</span><br><span class="line">&lt;&#x2F;script&gt;</span><br></pre></td></tr></table></figure>

        <div>
            <ul class="tags-category-list" itemprop="keywords"><li class="tags-category-list-item"><a class="tags-category-list-link" href="/hexo_blog/tags/python/" rel="tag">python</a></li></ul>
        </div>
        <div class="bottom-line"></div>
        
    <nav id="article-nav">
        
            <a href="/hexo_blog/2020/05/03/%E5%8F%88%E6%8B%8D%E4%BA%91%E5%AD%98%E5%82%A8/" id="article-nav-newer" class="article-nav-link-wrap">
        <span class="article-nav-title">
            
                又拍云存储
            
        </span>
                <strong class="article-nav-caption">&gt;</strong>
            </a>
        
        
            <a href="/hexo_blog/2020/04/30/%E4%B8%83%E7%89%9B%E4%BA%91%E4%B8%8A%E4%BC%A0/" id="article-nav-older" class="article-nav-link-wrap">
                <strong class="article-nav-caption">&lt;</strong>
                <span class="article-nav-title">
                    
                        七牛云存储
                </span>
                
            </a>
        
    </nav>


        
    </article>
    <div id="toc">
        
            <h2>Table of Contents</h2>
            <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#画中画"><span class="toc-number">1.</span> <span class="toc-text">画中画</span></a></li></ol>
        
    </div>
</div>

    </div>
</div>
<footer id="footer">
    <div id="copyright">&copy; Mr.Song  2020</div>
    <div id="theme">
        Powered by <a href="http://hexo.io" target="_blank" rel="noopener">Hexo</a>. Theme by <a href="https://github.com/markyong/hexo-theme-stage" target="_blank" rel="noopener">Stage</a>
    </div>
</footer>
<script src="/lib/js/waterrippleeffect.min.js"></script>
<script src="/js/header-bg.main.js"></script>

    <script src="/lib/js/smooth-scroll.min.js"></script>
    <script src="/js/toc.main.js"></script>

</body>
</html>
